import { ApiProperty } from '@midwayjs/swagger';
import { Rule, RuleType } from '@midwayjs/validate';
import { Column, Entity, PrimaryColumn } from 'typeorm';

@Entity({
  name: 'hxc',
  synchronize: true,
})
export class hxc {
  @ApiProperty({ example: 'MT111000' })
  @Rule(RuleType.string().allow(null).min(0).required())
  @PrimaryColumn({ type: 'varchar', length: 32 })
  id: string;
  @ApiProperty({ example: 'hxc' })
  @Rule(RuleType.string().allow(null).min(0).required())
  @Column({ nullable: true })
  name: string;
}
